// 网站主题颜色配置
export const themeColors = {
  // 主色调
  primary: {
    50: '#f0f9ff',
    100: '#e0f2fe',
    200: '#bae6fd',
    300: '#7dd3fc',
    400: '#38bdf8',
    500: '#0ea5e9',
    600: '#0284c7',
    700: '#0369a1',
    800: '#075985',
    900: '#0c4a6e',
  },

  // 辅助色调
  secondary: {
    50: '#f8fafc',
    100: '#f1f5f9',
    200: '#e2e8f0',
    300: '#cbd5e1',
    400: '#94a3b8',
    500: '#64748b',
    600: '#475569',
    700: '#334155',
    800: '#1e293b',
    900: '#0f172a',
  },

  // 成功状态
  success: {
    50: '#f0fdf4',
    100: '#dcfce7',
    200: '#bbf7d0',
    300: '#86efac',
    400: '#4ade80',
    500: '#22c55e',
    600: '#16a34a',
    700: '#15803d',
    800: '#166534',
    900: '#14532d',
  },

  // 警告状态
  warning: {
    50: '#fffbeb',
    100: '#fef3c7',
    200: '#fde68a',
    300: '#fcd34d',
    400: '#fbbf24',
    500: '#f59e0b',
    600: '#d97706',
    700: '#b45309',
    800: '#92400e',
    900: '#78350f',
  },

  // 错误状态
  danger: {
    50: '#fef2f2',
    100: '#fee2e2',
    200: '#fecaca',
    300: '#fca5a5',
    400: '#f87171',
    500: '#ef4444',
    600: '#dc2626',
    700: '#b91c1c',
    800: '#991b1b',
    900: '#7f1d1d',
  },

  // 中性色调
  neutral: {
    50: '#fafafa',
    100: '#f4f4f5',
    200: '#e4e4e7',
    300: '#d4d4d8',
    400: '#a1a1aa',
    500: '#71717a',
    600: '#52525b',
    700: '#3f3f46',
    800: '#27272a',
    900: '#18181b',
  },

  // 背景色
  background: {
    light: '#ffffff',
    dark: '#1a1a1a',
  },

  // 文本颜色
  text: {
    light: {
      primary: '#18181b',    // neutral-900
      secondary: '#71717a',  // neutral-500
      disabled: '#a1a1aa',   // neutral-400
    },
    dark: {
      primary: '#ffffff',
      secondary: '#d4d4d8',  // neutral-300
      disabled: '#71717a',   // neutral-500
    }
  },

  // 边框颜色
  border: {
    light: '#e4e4e7',  // neutral-200
    dark: '#3f3f46',   // neutral-700
  },

  // 分割线颜色
  divider: {
    light: '#f4f4f5',  // neutral-100
    dark: '#27272a',   // neutral-800
  }
}

// 获取调色板
export function getPalette(mode = 'light') {
  return {
    primary: themeColors.primary,
    secondary: themeColors.secondary,
    success: themeColors.success,
    warning: themeColors.warning,
    danger: themeColors.danger,
    neutral: themeColors.neutral,
    background: mode === 'light' ? themeColors.background.light : themeColors.background.dark,
    text: mode === 'light' ? themeColors.text.light : themeColors.text.dark,
    border: mode === 'light' ? themeColors.border.light : themeColors.border.dark,
    divider: mode === 'light' ? themeColors.divider.light : themeColors.divider.dark,
  }
}

// 导出默认配色方案
export default themeColors
